﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Linq;
using System.Web.UI.WebControls;
using DevExpress.Xpo;
using TaiLieu;
public partial class tl_trang_chu : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        switch (QueryHelper.Get_Value(Request, 1))
        {
            case "":
                LoadControlCenter("control/tc_content.ascx");
                break;
            case "trang-chu":
                LoadControlCenter("control/tc_content.ascx");
                break;
            default:
                LoadControlCenter("control/tc_content_1.ascx");
                break;
        }
    }
    protected void LoadControlCenter(string path)
    {
        this.pnGioiThieu.Controls.Clear();
        this.pnGioiThieu.Controls.Add(LoadControl(path));
    }
}